import api from "@/global/api";
export const state = () => ({
	token:''
})

export const mutations = {
	setToken(state,token){
		state.token = token;
	}
}
export const actions = {
  async nuxtServerInit ({ commit }, { app }) {
		let _token = app.$cookies.get('token') ? app.$cookies.get('token') : '';
		commit('setToken',_token);
  }
};